package ch03.decoration;

import ch03.component.Beverage;

/**
 * Created by lenovo on 2017/11/11.
 */
public class Whip extends CondimentDecorator {

    Beverage beverage;
    public  Whip(Beverage beverage){
        this.beverage=beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+",whip";
    }

    @Override
    public double cost() {
        return beverage.cost()+.40;
    }
}
